package com.example.sulingorder.feign;

import com.xiao.sulingpublic.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author: 1322127758@qq.com
 * @date: 2022/4/2 19:18
 * @作用:
 */
@FeignClient("suling-wallet")
public interface WalletFeign {
    /**
     * 通过用户号,修改钱包金额
     * @param companyUserName :要从哪个号转出
     * @param userName :要转到这个用户号
     * @param amount :金额
     * @return
     */
    @RequestMapping("/sulingwallet/purse/update/amount")
    R updateAmount(@RequestParam("companyUserName")String companyUserName, @RequestParam("userName")String userName, @RequestParam("amount") BigDecimal amount) throws Exception;
}
